package g4p.tests;

import g4p_controls.G4P;
import g4p_controls.GButton;
import g4p_controls.GEvent;
import processing.core.PApplet;

public class ColorChooserTest extends PApplet {
	
	GButton btnPick;
	int c = -1;
	
	public void setup(){
		size(300,300);
		btnPick = new GButton(this, 10,10,80,20,"Pick");
	}
	
	public void draw(){
		background(c);
	}

	public void handleButtonEvents(GButton button, GEvent event) { 
		c = G4P.selectColor();
		System.out.println(alpha(c)); 
	}

}
